function showTrail(axesHandle, trail, frameNum, frameSize )
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here
    thisTrail = trail(1:frameNum,:);
    imTrail = zeros(frameSize);
    indices = [];
    for i = 1:size(thisTrail,1)
        newIndices = getDotIndices(frameSize, thisTrail(i,:),3);
        indices = [indices;newIndices];
    end
    %indices = sub2ind(frameSize,thisTrail(:,1), thisTrail(:,2));
    imTrail(indices) = 1;
    imTrail = im2bw(imTrail);
    imshow(imTrail,'Parent', axesHandle)  
end

